package com.front.managementfront.driver.mapper;

import com.front.managementfront.driver.entity.HktsDriver;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.front.managementfront.driver.vo.DriverParameterVo;
import com.front.managementfront.driver.vo.ManagementMobileVo;
import com.hkts.management.common.vo.UserAndRealNameVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hml
 * @since 2021-04-22
 */
@Mapper
public interface HktsDriverMapper extends BaseMapper<HktsDriver> {

    UserAndRealNameVo getDriverInfoByUserId(String userId);
    List<UserAndRealNameVo> getDriverInfosByUserIds(@Param("userIds") List<String> userIds);

    void updateDriverApproval(DriverParameterVo vo);

    void updateDriverStatus(DriverParameterVo vo);

    List<UserAndRealNameVo> getDriverInfoByMobile(ManagementMobileVo mobile);
}
